package com.example.feignapi.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description
 * @Author 魏锴
 * @Date 2025/4/3
 */
@FeignClient(name = "imageService")
public interface ImageClient {
    @PostMapping("/image/feign/remove")
    boolean removeImage(@RequestParam("type") String type,
                        @RequestParam("version") String version,
                        @RequestParam("filename") String filename);
    @RequestMapping("/image/feign/net/save")
    boolean saveNetImage(@RequestParam("type") String type,
                         @RequestParam("version") String version,
                         @RequestParam("filename") String filename,
                         @RequestParam("url") String url);
}
